home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / wayfares.sql < prev    next >
Text File  |  2000-05-12  |  1KB  |  26 lines

  1. /* RCSVER $Id: wayfares.sql,v 1.3 2000-05-08 15:27:33-05 randy Exp $ */
  2. /* *************************************************************************
  3. *        Copyright (C) 1999, Agent Systems, Inc. All Rights Reserved.
  4. *
  5. * Name:        wayfares.sql
  6. * Date:        05/24/1999
  7. * memo:        Randy Wood
  8. * Description:    Create the wayfares table. This table contains information
  9. *        for each fare needed by the wayfarer unit.
  10. * Changes:
  11. ************************************************************************* */
  12. CREATE TABLE wayfares
  13. (
  14.     fareset        NUMBER(38),    /* Fareset */
  15.     fare        NUMBER(38),    /* Fare */
  16.     descriptor    NUMBER(38),    /* Wayfarer descriptor */
  17.     dvariable    NUMBER(38),    /* Wayfarer variable */
  18.     price        NUMBER(36,2),    /* Cost to issue card */
  19.     expcode        NUMBER(38),    /* Code of expiration of card */
  20.     ntrips        NUMBER(38),    /* Number of wayfarer trips */
  21.     config_num      NUMBER(38)
  22.                     CONSTRAINT ref_wayfares REFERENCES configset(num)
  23.                     ON DELETE CASCADE,
  24.         CONSTRAINT pk_wayfares PRIMARY KEY (fareset, fare, config_num)
  25. );
  26.